import React from 'react';
import {render} from 'react-dom';
import {Router, Route, hashHistory} from 'react-router';
import Layout from './components/Layout';
import Layout2 from './components/Layout2';
import Index from './components/Index';

const app = document.getElementById('app');
render((
	<Router>
		<Route path="/" component={Index}>
			<Route path="/layout" component={Layout}/>
			<Route path="/layout2" component={Layout2}/>
		</Route>
	</Router>
), app);